/**
 * FileName: XuanzeSort
 * Author:   powersi
 * Date:     2021/3/13 7:51
 * Description:
 */
package com.zm.demo.core.sort;

import java.util.Arrays;

/**
 * Description: 
 * Author:      powersi
 * Date:        2021/3/13 7:51
 */
public class XuanzeSort {

    public static void main(String[] args) {
        int[]a = {0, 1,2,4,5,7,8,4,3,6};
        for (int i = 0; i < a.length; i++) {
            for (int j = i+1; j < a.length; j++) {
                if (a[i]>a[j]){
                    int tmp = a[i];
                    a[i] = a[j];
                    a[j] = tmp;
                }
            }
            System.out.println(Arrays.toString(a));
        }
    }
}
